﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LLFM.CAT.Model;
using System.Data;
using Common;
using LLFM.CAT.Config;
using System.Data.SqlClient;

namespace LLFM.CAT.Service
{
    public class ProvinceService
    {
        public static List<M_Province> GetProvinceList()
        {
            DataTable dt = SqlHelper.ExecuteDataset(DBConfig.BitautoSDT
                , CommandType.StoredProcedure
                , "pro_GetProvinceList").Tables[0];
            return ModelHelper.FillModelsFromDataTable<M_Province>(dt);
        }
    }
}
